import request from '@/utils/request'
export function getBrandList({ page, keywords }) {
  return request({
    url: '/api/back/brand/list',
    method: 'get',
    params: { page, keywords }
  })
}
export function createBrandItem({ name, information, cover, banners, description, detail, id }) {
  return request({
    url: '/api/back/brand/create',
    method: 'post',
    data: { name, information, cover, banners, description, detail, id }
  })
}
export function brandSort(params) {
  return request({
    url: '/api/back/brand/create',
    method: 'post',
    data: params
  })
}
export function setActive(id) {
  return request({
    url: '/api/back/brand/active',
    method: 'post',
    data: { id }
  })
}
